package main 


import (
	"crypto/md5"
	"fmt"
)

// 加密密码，md5(md5(password + salt) + public_salt)
func EncryptPassword(password, salt string) string {
	saltedPassword := fmt.Sprintf("%x", md5.Sum([]byte(password))) + salt
	md5SaltedPassword := fmt.Sprintf("%x", md5.Sum([]byte(saltedPassword)))
	return fmt.Sprintf("%x", md5.Sum([]byte(md5SaltedPassword+"nXweu8Jq44FgEfgM1Pv4xH51")))
}

func main(){
	str := EncryptPassword("eee", "c5aefb13272d11e780143c970ecc3232")
        fmt.Println(str)
}

